<@pp.dropOutputFile/>
<#include "../common/util.ftl">

<#-- generate package name -->

<#-- iterate table list-->
<#list doc.tables as table>
<#assign module = doc.artifactid?replace(".", "/") + "/" + table.moduleid?uncap_first>
<#assign fileName = table.name?cap_first>
<#assign data_url = "/" + module + "/" + fileName + "/">
<@pp.changeOutputFile name="/main/webapp/" + module + "/" + fileName + "/showimport.ftl"/>
<#compress>
<!DOCTYPE html>
<html>
<head>
<title>${fileName} test!</title>
<#noparse>
<#assign base="${request.getContextPath()}">
<#include "/common/import_m_easyui_css.ftl">
<#include "/common/import_m_easyui_js.ftl">
<script type="text/javascript"><#include "showimport_js.ftl"></script>
</#noparse>
</head>

<body>
	<div class="container">
		<h1>${fileName} 批量录入!</h1>

		<div class="row">
			<div class="panel panel-primary">
				<div class="panel-heading">import.action</div>
				<div class="panel-body">
					<button type="button" id="_import" class="btn btn-primary" onclick="importData()">保存</button>
					<form class="form" id="import_form">
					<table class="table">
						<tr>
						<#list table.fields as field>
							<#if !field.name?starts_with("sys_") && !field.name?starts_with("id")>
							<th>${field.label}</th>
							</#if>
						</#list>
						</tr>
						<#list [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] as no>
						<tr>
						<#list table.fields as field>
							<#if !field.name?starts_with("sys_") && !field.name?starts_with("id")>
							<td><input type="text" class="form-control" name="objs[${no}].${field.name?uncap_first}" id="_${field.name?uncap_first}_create" value="1" placeholder="${field.name?uncap_first}"/></td>
							</#if>
						</#list>
						</tr>
						</#list>
					</table>
					</form>
				</div>
			</div>
		</div>

	</div>
</body>
</html>
</#compress>
</body>
</html>
</#list>